<?php include '../../../entries/restful.php';
/**
 *  维修详情
 */
class Surface extends Restful{

    public function action(){

        $id = get('id');

        $sql = 'select * from prop_fix where id = ?';
        $arg = [$id];

        $info = Mdb::query(MDB_MAIN,$sql,$arg);
        if(empty($info)) return Res::ok();
        return Res::ok($info[0]);
    }
}

new Surface();